package com.coderman.utils.bean;

import java.util.List;

/**
 * Created by on 2017-10-17.
 *
 * @author: fanchunshuai
 * @version: V1.0
 * @Desc:
\ */
public interface IConvert {
    /**
     * 批量对象属性copy
     *
     * @param clazz
     * @param objList
     * @param <T>
     * @param <K>
     * @return
     * @throws Exception
     */
    <T, K> List<T> copyPropertities(Class<T> clazz, List<K> objList) throws Exception;

    /**
     * 单个对象属性copy
     *
     * @param clazz
     * @param orig
     * @param <T>
     * @return
     * @throws Exception
     */
    <T> T copyPropertity(Class<T> clazz, Object orig) throws Exception;
}